﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012CB RID: 4811
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncApplyFriendScNotify : IMessage<SyncApplyFriendScNotify>, IMessage, IEquatable<SyncApplyFriendScNotify>, IDeepCloneable<SyncApplyFriendScNotify>, IBufferMessage
	{
		// Token: 0x17003CD5 RID: 15573
		// (get) Token: 0x0600D792 RID: 55186 RVA: 0x002428D9 File Offset: 0x00240AD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncApplyFriendScNotify> Parser
		{
			get
			{
				return SyncApplyFriendScNotify._parser;
			}
		}

		// Token: 0x17003CD6 RID: 15574
		// (get) Token: 0x0600D793 RID: 55187 RVA: 0x002428E0 File Offset: 0x00240AE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncApplyFriendScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003CD7 RID: 15575
		// (get) Token: 0x0600D794 RID: 55188 RVA: 0x002428F2 File Offset: 0x00240AF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncApplyFriendScNotify.Descriptor;
			}
		}

		// Token: 0x0600D795 RID: 55189 RVA: 0x002428F9 File Offset: 0x00240AF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncApplyFriendScNotify()
		{
		}

		// Token: 0x0600D796 RID: 55190 RVA: 0x00242901 File Offset: 0x00240B01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncApplyFriendScNotify(SyncApplyFriendScNotify other) : this()
		{
			this.applyInfo_ = ((other.applyInfo_ != null) ? other.applyInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D797 RID: 55191 RVA: 0x00242936 File Offset: 0x00240B36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncApplyFriendScNotify Clone()
		{
			return new SyncApplyFriendScNotify(this);
		}

		// Token: 0x17003CD8 RID: 15576
		// (get) Token: 0x0600D798 RID: 55192 RVA: 0x0024293E File Offset: 0x00240B3E
		// (set) Token: 0x0600D799 RID: 55193 RVA: 0x00242946 File Offset: 0x00240B46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendApplyInfo ApplyInfo
		{
			get
			{
				return this.applyInfo_;
			}
			set
			{
				this.applyInfo_ = value;
			}
		}

		// Token: 0x0600D79A RID: 55194 RVA: 0x0024294F File Offset: 0x00240B4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncApplyFriendScNotify);
		}

		// Token: 0x0600D79B RID: 55195 RVA: 0x0024295D File Offset: 0x00240B5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncApplyFriendScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.ApplyInfo, other.ApplyInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D79C RID: 55196 RVA: 0x00242990 File Offset: 0x00240B90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.applyInfo_ != null)
			{
				num ^= this.ApplyInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D79D RID: 55197 RVA: 0x002429CC File Offset: 0x00240BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D79E RID: 55198 RVA: 0x002429D4 File Offset: 0x00240BD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D79F RID: 55199 RVA: 0x002429DD File Offset: 0x00240BDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.applyInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.ApplyInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D7A0 RID: 55200 RVA: 0x00242A10 File Offset: 0x00240C10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.applyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ApplyInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D7A1 RID: 55201 RVA: 0x00242A50 File Offset: 0x00240C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncApplyFriendScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.applyInfo_ != null)
			{
				if (this.applyInfo_ == null)
				{
					this.ApplyInfo = new FriendApplyInfo();
				}
				this.ApplyInfo.MergeFrom(other.ApplyInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D7A2 RID: 55202 RVA: 0x00242AA4 File Offset: 0x00240CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D7A3 RID: 55203 RVA: 0x00242AB0 File Offset: 0x00240CB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.applyInfo_ == null)
					{
						this.ApplyInfo = new FriendApplyInfo();
					}
					input.ReadMessage(this.ApplyInfo);
				}
			}
		}

		// Token: 0x040055EF RID: 21999
		private static readonly MessageParser<SyncApplyFriendScNotify> _parser = new MessageParser<SyncApplyFriendScNotify>(() => new SyncApplyFriendScNotify());

		// Token: 0x040055F0 RID: 22000
		private UnknownFieldSet _unknownFields;

		// Token: 0x040055F1 RID: 22001
		public const int ApplyInfoFieldNumber = 10;

		// Token: 0x040055F2 RID: 22002
		private FriendApplyInfo applyInfo_;
	}
}
